﻿<include file="Common:header" />
<script src="<{:__PUBLIC__}>/js/city.js" type="text/javascript"></script>
<table id="columns">
<tr>
<td id="main" style="-moz-border-radius-bottomleft:5px;">
 <div class="guideline">
        <div class="g2"><{:L('firststep')}><br/><{:L('firstbody')}></div>
        <div class="g1 curent"><{:L('secondstep')}><br/><{:L('secondbody')}></div>
        <div class="g2"><{:L('thirdstep')}><br/><{:L('thirdbody')}></div>
    </div>

<div class="contenter">   

   <div  class="clearfix form-register">
    <form method="post" action="<{:SITE_URL}>/Guide/jia_fuwu">
		<FIELDSET><LEGEND><{:L('fuwushuru')}></LEGEND>
		<DIV class="clearfix form-row"><LABEL class=form-label for=servicesupplier><{:L('fuwuzhanghao')}>: </LABEL> <LABEL class=form-label for=servicesupplier><{$my[user_name]}></LABEL> </DIV>
		<DIV class="clearfix form-row"><LABEL class=form-label for=servicetype><{:L('fuwufenglei')}>:</LABEL> <select id="fufenlei" name="fufenlei">
	<option value="-1"><{:L('fuwufenglei')}></option>
	<volist name="vol_fuwu" id="vol_fuwu">
	<option value="<{$vol_fuwu['skill_id']}>"><{$vol_fuwu['skill_name']}></option>
	</volist>
	</select>
	<select id="zifenlei" name="zifenlei"><option value="-1"><{:L('fuwufenglei')}></option></select> </DIV>

    <script language="javascript">
	$(document).ready(function(){
		
		//下面是一级下来的时候
		$('#fufenlei').change(function(){
			if(this.value==-1){
				
				return;
			}
			$.post('<{:SITE_URL}>/Guide/ajaxData_fuwu',{pid:this.value},function(data){
				if(data.status==1){
					$('#zifenlei').empty();//清空原有的数据
					$("<option value='-1'><{:L('fuwufenglei')}></option>").appendTo("#zifenlei");
					$.each(data.data, function(i,n){
						$("<option value='"+n.skill_id+"'>"+n.skill_name+"</option>").appendTo("#zifenlei");
					});
					
				}else{
					alert('没有子级了!');
				}
			},'json');
		});
		
	});
	</script>

		<DIV class="clearfix form-row"><LABEL class=form-label for=servicesub><{:L('fuwubiaoti')}>:</LABEL><label>
                  <input name="fuwubiaoti"   class="input_text" style="width:220px"  type="text" id="fuwubiaoti" size="38" maxlength="28" value="" />
                </label></DIV>
		<DIV class="clearfix form-row"><LABEL class=form-label for=servicemoney><{:L('fuwujaige')}>:</LABEL>  <select name="fuwujiage" onchange="cost(this);">
    	<option value="15">单价15元</option> 
    <option value="12">单价12元</option> 
     <option value="11">单价11元</option> 
     <option value="10" selected="selected">单价10元</option> 
     <option value="9">单价9元</option>
     <option value="8">单价8元</option> 
	 <option value="5">单价5元</option> 
	 <option value="2">单价2元</option> 
	 <option value="1">单价1元</option> 
	  <option value="0.5">单价0.5元</option> 
	  <option value="0.2">单价0.2元</option> 
     <option value="0">免费服务日</option>     
    </select> </DIV>
		<DIV class="clearfix form-row"><LABEL class=form-label for=moneydandao><{:L('fuwuyedb')}>:</LABEL> <select name="yuerdanbao" id="yuerdanbao">
    <option value="0">0元余额担保</option> 
     <option value="0.2">0.2元余额担保</option> 
    </select></DIV>
		<DIV class="clearfix form-row"><LABEL class=form-label for=skilldetail><{:L('fuwujnxq')}>: </LABEL> <textarea name="fuwuxiangqing" id="fuwuxiangqing" class="input_text" style="width:220px;height:100px"><{$my[fuwuxiangqing]}></textarea>
		  <div class="followtime">还能输入 <span id="nums">420</span> 个字符</div> </DIV>
		<DIV class="clearfix form-row"><LABEL class=form-label for=totalmoney><{:L('fuwuzdywt')}> </LABEL>  <label>
                  <input name="zidingyiwenti"   class="input_text" style="width:220px"  type="text" id="zidingyiwenti" size="38" maxlength="28" value="" />
                </label> </DIV>
				<script type="text/javascript">
					 function weiqinyou(obj)
					{
						if($(obj).attr("checked")==true){
							$("#shifouweiqinyou").show();	
						}else{
							$("#shifouweiqinyou").hide();	
						}	
					}
				</script>
	<DIV class="clearfix form-row"> <LABEL class=form-label for=qinyou>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="qinyou" type="checkbox" id="qinyou" value="1" onclick="weiqinyou(this);"  /></LABEL> <LABEL class=form-label for=qinyou><{:L('fuwuweiqinyou')}></LABEL></DIV>
		<div id="shifouweiqinyou" name="shifouweiqinyou" class="clearfix form-row" style="display:none;"><{:L('fuwuweiqygx')}>：<input name="hewodeganxi" id="hewodeganxi" style="width:15%" type="text"  class="input_text_qy" maxlength="10" /> &nbsp;&nbsp;
<select id="lone" name="lone">
	<option value="-1">选择省份</option>
	<volist name="vol" id="vol">
	<option value="<{$vol['region_id']}>"><{$vol['region_name']}></option>
	</volist>
	</select>
	<select id="ltwo" name="ltwo"><option value="-1">选择城市</option></select>
	<select id="lthree" name="lthree"><option value="-1">选择县城</option></select>
	<script language="javascript">
	$(document).ready(function(){
		$('#ltwo').hide();
		$('#lthree').hide();
		//下面是一级下来的时候
		$('#lone').change(function(){
			if(this.value==-1){
				$('#ltwo').hide();
				$('#lthree').hide();
				return;
			}
			$.post('<{:SITE_URL}>/Guide/ajaxData',{pid:this.value},function(data){
				if(data.status==1){
					$('#lthree').hide();
					$('#ltwo').empty();//清空原有的数据
					$("<option value='-1'>选择城市</option>").appendTo("#ltwo");
					$.each(data.data, function(i,n){
						$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#ltwo");
					});
					$('#ltwo').show();
				}else{
					alert('没有子级了!');
				}
			},'json');
		});
		//下面是二级下来的时候
		$('#ltwo').change(function(){
			if(this.value==-1){
				$('#lthree').hide();
				return;
			}
			$.post('<{:SITE_URL}>/Guide/ajaxData',{pid:this.value},function(data){
				if(data.status==1){
					$('#lthree').empty();//清空原有的数据
					$("<option value='-1'>选择县城</option>").appendTo("#lthree");
					$.each(data.data, function(i,n){
						$("<option value='"+n.region_id+"'>"+n.region_name+"</option>").appendTo("#lthree");
					});
					$('#lthree').show();
				}else{
					alert('没有子级了!');
				}
			},'json');
		});
	});
	</script> </div>
		</FIELDSET> 
		 <center><input type="submit" class="button2" value="<{:L('fuwuweitianjia')}>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="button3" value="<{:L('scapestepornext')}>" onclick="window.location.href='<{:SITE_URL}>/Guide/followuser'"/></center>
	
	</form>
    </div>

 <div id="welleft">	
	<div class='theysay'><strong><{$my['user_name']}><{:L('fuwuweitigong')}>：</strong></div>	
	<div class="marqueegb">				
		<ul>
			<volist name="volfuwulist" id="volfuwulist">
			<!--最小单元-->
				  <li>
					  <div class="indexgbli">
						  <table border="0" width="100%">
							  <tr>
								  <td width="60px" valign="top"><a href="<{:SITE_URL}>/Setting/face" title="修改头像"><img src="<{:sethead($my[user_head])}>" width="50px" height="50px" alt="<{$my[nickname]}>" class="imgborder"></a>
								  </td>
								  <td valign="top">
									  <a href="<{:SITE_URL}>/<{$my[user_name]}>"> <{$my[user_name]}> </a><span class="guanxi"><php>if($volfuwulist['shifouweiqinyou']){</php> &nbsp;<{:L('fuwude')}>&nbsp;<php>}</php><{$volfuwulist[hewodeganxi]}></span>&nbsp;&nbsp;<{$volfuwulist['fuwuleibieming']}>&nbsp;&nbsp;<{:L('fuwuxq')}>: <{$volfuwulist['fuwuxiangqing']}>
									  <div><div class="spl"> 
									  <{$volfuwulist['fuwubiaoti']}>
									  </div> 
									   <div class="spr">  
									  <{:L('fuwumaichu')}>:<{$volfuwulist['yongfugoumaishu']}> | <{:L('fuwuhaoping')}>:<{$volfuwulist['haopinggeshu']}> |<{:L('fuwudanjia')}>:￥<{$volfuwulist['fuwujiage']}> 
									  </div></div>
									 
								  </td>
							  </tr>
						  </table>
					  </div>
				  </li>
			  <!--最小单元--></volist>
	    </ul>
	</div>
 </div>


</td>
<td id="sidebar"><include file="Space:homeside"/></td>
</tr>

</table>

<script type="text/javascript">
    $("#fuwuxiangqing").keyup(function(){
        var len=$.trim($('#fuwuxiangqing').val()).length;
        len=420-len;
        if (len<0) {
            $('#fuwuxiangqing').val($.trim($('#fuwuxiangqing').val()).slice(0,420));
            len=0;
        }
        $('#nums').html(len);
    });
    $('#nums').html(420-$.trim($('#fuwuxiangqing').val()).length);

	function offline(id){
		window.location.href="__URL__/offline_fuwu?id="+id;
	}
	function edit(id){
		window.location.href="__URL__/editfuwu?id="+id;
	}
</script>
<include file="Common:foot" />